module.exports = {
  pluginOptions: {
    electronBuilder: {
      builderOptions: {
        // options placed here will be merged with default configuration and passed to electron-builder
        "win": {
          'target': 'nsis'
        },
        "nsis": {
          oneClick: false,
          perMachine: true,
          allowToChangeInstallationDirectory: true
        }
      }
    }
  },
  devServer: {
    // open: true, //是否自动弹出浏览器页面
    host: 'localhost',
    port: '8081',
    https: false,
    hotOnly: false,
    proxy: {
      '/qq': {
        target: 'https://v.qq.com/x/search', // 接口域名http://www.fjcp.cn/
        changeOrigin: true, // 是否跨域
        secure: false, // 如果是https接口，需要配置这个参数为true`
        pathRewrite: {
          '^/qq': '' // 需要rewrite重写的
        }
      }
    },
  }
}